tuple1 = (1,2,3,4,5,6,7,8,9)
print(tuple1[1])
for i in tuple1:
    print(i , end=' ')

print()
print(tuple1[:3])
print(tuple1[1:4])
print(tuple1[:])
## 元组不能直接修改
## tuple1[1] = 111 // error

names = ('zhangsan', 'lisi', 'wangwu')
names = names[:2] + ('maliu',) + names[2:]
print(names)
